//
//  JMPHttpRequest.m
//  qwm
//
//  Created by kevin on 2023/3/23.
//
#import "JMPHttpRequest.h"

@implementation JMPHttpRequest

-(instancetype) init
{
    self = [super init];
    if (self) {
        _method = JMP_HTTP_METHOD_GET;
        _timeoutInterval = JMPRequestDefaultTimeoutInterval;
    }
    return self;
}

-(instancetype) initWithUrl:(NSString *)url
{
    self = [self init];
    if (self) {
        _url = url;
    }
    return self;
}

-(instancetype) initWithUrl:(NSString *)url params:(NSDictionary *)params
{
    self = [self initWithUrl:url];
    if (self) {
        _params = params;
    }
    return self;
}
-(NSDictionary*) params
{
    if (!_params) {
        _params = @{};
    }
    return _params;
}

@end
